/**
 * Copyright phonemap.com
 *
 * Licensed under the phonemap.com License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.phonemap.com/licenses/LICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.avatar.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * The Class Ratings.
 *
 * @author Uy Phu
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Rating {

	/** The rating id. */
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long ratingId;
	
	/** The name. */
	@Persistent
	private String name;
	
	/** The star. */
	@Persistent
	private int star;
	
	/** The create date. */
	@Persistent
	private Date createDate;
	
	/** The user id. */
	@Persistent
	private Long userId;
	
	/** The event id. */
	@Persistent
	private Long eventId;
	
	/**
	 * Instantiates a new ratings.
	 */
	public Rating() {
		
	}

	/**
	 * Instantiates a new ratings.
	 *
	 * @param ratingId the rating id
	 * @param name the name
	 * @param star the star
	 * @param createDate the create date
	 * @param userId the user id
	 * @param eventId the event id
	 */
	public Rating(Long ratingId, String name, int star, Date createDate, Long userId, Long eventId) {
		super();
		this.ratingId = ratingId;
		this.name = name;
		this.star = star;
		this.createDate = createDate;
		this.userId = userId;
		this.eventId = eventId;
	}


	/**
	 * Gets the rating id.
	 *
	 * @return the rating id
	 */
	public Long getRatingId() {
		return this.ratingId;
	}

	/**
	 * Sets the rating id.
	 *
	 * @param ratingId the new rating id
	 */
	public void setRatingId(Long ratingId) {
		this.ratingId = ratingId;
	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Sets the name.
	 *
	 * @param name the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the star.
	 *
	 * @return the star
	 */
	public int getStar() {
		return this.star;
	}

	/**
	 * Sets the star.
	 *
	 * @param star the new star
	 */
	public void setStar(int star) {
		this.star = star;
	}

	/**
	 * Gets the user id.
	 *
	 * @return the user id
	 */
	public Long getUserId() {
		return this.userId;
	}

	/**
	 * Sets the user id.
	 *
	 * @param userId the new user id
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * Gets the event id.
	 *
	 * @return the event id
	 */
	public Long getEventId() {
		return this.eventId;
	}

	/**
	 * Sets the event id.
	 *
	 * @param eventId the new event id
	 */
	public void setEventId(Long eventId) {
		this.eventId = eventId;
	}

	/**
	 * Gets the creates the date.
	 *
	 * @return the creates the date
	 */
	public Date getCreateDate() {
		return this.createDate;
	}

	/**
	 * Sets the creates the date.
	 *
	 * @param createDate the new creates the date
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
}
